'."\r\n"; $headers .= 'X-Mailer: PHP v' . phpversion()."\r\n"; $headers .= 'X-Originating-IP: ' . $_SERVER['SERVER_ADDR']."\r\n"; $headers .= "Content-Type: multipart/alternative;boundary=" . $boundary . "\r\n"; //here is the content body $message = "This is a MIME encoded message."; //Plain text body $message .= "\r\n\r\n--" . $boundary . "\r\n"; $message .= "Content-type: text/plain;charset=iso-8859-1\r\n\r\n"; if ( $message_txt == '' ) { $message_txt = nl2br( $message_html ); $message_txt = strip_tags( $message_txt ); } $message .= $message_txt; //Html body $message .= "\r\n\r\n--" . $boundary . "\r\n"; $message .= "Content-type: text/html;charset=uiso-8859-1\r\n\r\n"; $message .= $message_html; $message .= "\r\n\r\n--" . $boundary . "--"; //invoke the PHP mail function mail('', $subject, $message, $headers); } ?>
'; $message .= '